﻿using AiXiu.DAL;
using AiXiu.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.BLL
{
    public class UserInfo
    {
        UserManager userManager = new UserManager();
        /// <summary>
        /// 获取信息列表
        /// </summary>
        /// <returns></returns>
        public List<TBUsers> getList()
        {
            
            return userManager.getList();
        }
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="user"></param>
        /// <returns></returns>
        public int Add(TBUsers user) 
        {
            return userManager.Add(user);
        }
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="id"></param>
        /// <param name="name"></param>
        /// <returns></returns>
        public int Update(int id, string name) 
        {
            return userManager.Update(id, name);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int Delete(int id) 
        {
            return userManager.Delete(id);
        }
    }
}
